package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 二级分类vo
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Catelog2Vo {
    //一级分类id
    private String catalog1Id;
    //三级自子分类
    private List<Catelog3Vo> catalog3List;
    //分类id
    private String id;
    //分类名称
    private String name;


    /**
     * 三级分类vo
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class  Catelog3Vo {
        //父分类Id，二级分类id
        private String catalog2Id;
        //分类id
        private String id;
        //分类名称
        private String name;
    }
}
